load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target")
load("@fbcode_macros//build_defs:cpp_benchmark.bzl", "cpp_benchmark")
load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest")

oncall("fbcode_entropy_wardens_folly")

fbcode_target(
    _kind = cpp_benchmark,
    name = "UnboundedBlockingQueueBench",
    srcs = ["UnboundedBlockingQueueBench.cpp"],
    deps = [
        "//folly:benchmark",
        "//folly/executors/task_queue:unbounded_blocking_queue",
        "//folly/init:init",
    ],
    external_deps = [
        "glog",
        ("boost", None, "boost_thread"),
    ],
)

fbcode_target(
    _kind = cpp_unittest,
    name = "PriorityUnboundedBlockingQueueTest",
    srcs = ["PriorityUnboundedBlockingQueueTest.cpp"],
    deps = [
        "//folly/container:enumerate",
        "//folly/executors/task_queue:priority_unbounded_blocking_queue",
        "//folly/portability:gtest",
        "//folly/synchronization:baton",
    ],
)

fbcode_target(
    _kind = cpp_unittest,
    name = "UnboundedBlockingQueueTest",
    srcs = ["UnboundedBlockingQueueTest.cpp"],
    deps = [
        "//folly/executors/task_queue:unbounded_blocking_queue",
        "//folly/portability:gtest",
        "//folly/synchronization:baton",
    ],
)

fbcode_target(
    _kind = cpp_unittest,
    name = "PriorityLifoSemMPMCQueueTest",
    srcs = ["PriorityLifoSemMPMCQueueTest.cpp"],
    deps = [
        "//folly:range",
        "//folly/container:enumerate",
        "//folly/executors/task_queue:priority_lifo_sem_mpmc_queue",
        "//folly/portability:gtest",
    ],
)
